package com.sbox.db;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class DBHelper extends SQLiteOpenHelper {
	private static final int DATABASE_VERSION = 1;
	
	private final String DB_CREATE_NOTES = "CREATE TABLE notes( " + 
			"id long primary key not null," +
			"title char(64) not null," +
			"content text," +			
			"level int)"
			;

	public DBHelper(Context context, String name) {
		super(context, name, null, DATABASE_VERSION);		
		
	}

	@Override
	public void onCreate(SQLiteDatabase db) {
		db.execSQL(DB_CREATE_NOTES);
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		// TODO Auto-generated method stub
		
	}
	
}
